import request from '@/utils/request'
//字体列表
export function gettypefaceList(page) {
  return new Promise((resolve, reject) => {
    request({
      url: `/api/poster.typeface/list`,
      method: 'get',
	  params:{
		  page
	  }
    }).then(data => {
      resolve(data)
    }).catch((e) => {
      reject(e)
    })
  })
}
//字体详情
export function gettypefaceDetail(id) {
  return new Promise((resolve, reject) => {
    request({
      url: `/api/poster.typeface/detail`,
      method: 'get',
   params:{
	   id
   }
    }).then(data => {
      resolve(data)
    }).catch((e) => {
      reject(e)
    })
  })
}